package hospital.serviceImpl;

import java.util.List;

import hospital.dao.PatientDao;
import hospital.model.DocScheduleModel;
import hospital.model.LoginModel;
import hospital.model.PatientInfoModel;
import hospital.model.RecordDetailModel;
import hospital.service.PatientService;

public class PatientServiceImpl implements PatientService {

	private PatientDao patientDao;

	public PatientDao getPatientDao() {
		return patientDao;
	}

	public void setPatientDao(PatientDao patientDao) {
		this.patientDao = patientDao;
	}

	@Override
	public PatientInfoModel lookupPatientInfo() {
		return patientDao.selectLookupPatientInfo();
	}

	@Override
	public boolean updatePatient(PatientInfoModel patientInfo) {
		return patientDao.updatePatient(patientInfo);
	}

	@Override
	public List<DocScheduleModel> lookupAppointment() {
		return patientDao.selectLookupAppointment();
	}

	@Override
	public String checkPassword() {
		return patientDao.selectCheckPassword();
	}

	@Override
	public List<RecordDetailModel> getRecordDetailList() {
		return patientDao.selectGetRecordDetailList();
	}

	@Override
	public boolean changePassword(String password) {
		return patientDao.updateChangePassword(password);
	}

	@Override
	public boolean updateUsername(String email) {
		return patientDao.updateUsername(email);
	}

}
